//
//  HomeworkAfterClassController.m
//  Learn
//
//  Created by 迟建国 on 2024/4/4.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "HomeworkAfterClassController.h"
#import "HomeworkAfterCollectionViewCell.h"

@interface HomeworkAfterClassController ()

//@property (nonatomic, strong) UICollectionView *collectionView;
@end

@implementation HomeworkAfterClassController

- (void)viewDidLoad {
    [super viewDidLoad];
    // [self setUI];
    // Do any additional setup after loading the view.
    [self.view addSubview:self.webView];
    self.ingoreTitle = YES;
    self.webView.y = 0;
    self.webView.height = self.view.height - SafeAreaBottomHeight - lTabBarHeight;
    [self reloadWebviewWithUrl:H5_API_homework];
}
//- (void)setUI {
//    UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
//    layout.sectionInset = UIEdgeInsetsMake(10, 0, 10, 0);
//    layout.minimumLineSpacing = 10;
//    UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H - NavigationBarHeight - SafeAreaBottomHeight - 49) collectionViewLayout:layout];
//    collectionView.backgroundColor = UIColor.clearColor;
//    collectionView.delegate = self;
//    collectionView.dataSource = self;
//    collectionView.showsVerticalScrollIndicator = NO;
//    collectionView.showsHorizontalScrollIndicator = NO;
////    collectionView.alwaysBounceVertical = NO;
////    self.extendedLayoutIncludesOpaqueBars = YES;
//    if (@available(iOS 11.0, *)) {
//        collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
//    }
//    [collectionView registerNib:[UINib nibWithNibName:@"HomeworkAfterCollectionViewCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"HomeworkAfterCollectionViewCell"];
//
//    [self.view addSubview:collectionView];
//    self.collectionView = collectionView;
//}
//
//#pragma collectionView
//
//- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
//    return 1;
//}
//
//- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
//    return 5;
//}
//
//- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
//    HomeworkAfterCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"HomeworkAfterCollectionViewCell" forIndexPath:indexPath];
//    if (!cell) {
//        cell = [[[NSBundle mainBundle]loadNibNamed:@"HomeworkAfterCollectionViewCell" owner:self options:nil] lastObject];
//    }
////    cell.model = self.model;
//    return cell;
//}
//
//- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
//    return CGSizeMake(SCREEN_W - 20, 425);
//}
@end
